package cn.apptec.domain;

import com.google.common.base.Preconditions;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * Created by apptec on 2017/5/15.
 *
 * @Author: liuyangsheng
 * @Description:
 * @Modified By:
 */

public class Cat {
    private String name;
    private Integer age;

    public Cat(String name, Integer age) {
        this.name = Preconditions.checkNotNull(name);
        this.age = Preconditions.checkNotNull(age);
    }

    public Cat() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
